<?php
class butkimtinh_Layout extends Zend_Controller_Plugin_Abstract {
    
    protected $_modules;
    public function __construct(array $m){
    	$this->_modules = $m;
    }
	public function preDispatch(Zend_Controller_Request_Abstract $request){
	    
	    $module = $request->getModuleName();
	    $vLayout = 'default';
	    if(in_array($module,$this->_modules)){
	        $vLayout = $module;
	    }
	    /* Đường dẫn tới layout của từng module */
	    $layoutPath = APPLICATION_PATH . '/modules/' . $vLayout . '/layouts/scripts/';
	    $a = Zend_Layout::startMvc()->setLayoutPath($layoutPath);
	    
	    
	}
}
?>